<?php

/**
 * 电脑端首页接口路由
 */
Route::group(['prefix' => 'home','namespace' => 'Home','middleware' => ['web.uid']], function () {
    Route::get('index', 'HomeController@getIndex');  //首页
    Route::get('search', 'HomeController@search');  //首页搜索
    Route::get('bales', 'HomeController@bales');  //货单列表
    Route::get('customer', 'HomeController@customer');  //客户列表
    Route::get('factory', 'HomeController@factory');  //工厂列表
    Route::get('staff', 'HomeController@staff');  //工人列表




});



/*
Route::any('/api',function( Request $request){
    \App\admin\Service\OA::load();
    $type=$request->input('c',null);
    if(!$type){
        \App\admin\Service\OA::Json(1,'参数错误ApiController()');
    }
    ///  OA::load();
    \App\Models\Admin\ApilistModel::callAPI($type);
});
*/